﻿@using Orchard.ContentManagement;

@{
    Style.Include("chapters.css");
}

@if (Model.Previous != null || Model.Parent != null || Model.Next != null) {
<ul class="chapters-navigation">
   <li class="previous">@if (Model.Previous != null) { @Html.ItemDisplayLink( "< " + (string)Model.Previous.Title, (Orchard.ContentManagement.ContentItem) Model.Previous.ContentItem) } &nbsp;</li>
   <li class="up" title="@T("Go to parent page - {0}", (string)@Model.Parent.Title)">@if (Model.Parent != null) { @Html.ItemDisplayLink(T("up").Text, (Orchard.ContentManagement.ContentItem) Model.Parent.ContentItem)}</li>
   <li class="next">&nbsp;@if (Model.Next != null) { @Html.ItemDisplayLink((string)Model.Next.Title + " >", (Orchard.ContentManagement.ContentItem) Model.Next.ContentItem) }</li>
</ul>
}